package com.jarcms.smdcmanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jarcms.smdcmanage.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单详情Mapper接口
 */
@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    int countByTime(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    BigDecimal sumAmountByTime(@Param("startTime")LocalDateTime startTime,@Param("endTime") LocalDateTime endTime);
}